import { Store, legacy_createStore } from "redux";
import reducer from './reducer';

const store: Store = legacy_createStore(reducer);

export const dispatch = (params: {type: string, data: any}) => {
    store.dispatch(params);
}

export default store;
